# 导包
from flask import Flask

# 导入基本模块

from flask import request, jsonify


# 跨域模块
from flask_cors import CORS

# 建立 flask实例

app = Flask(__name__)

# 利用跨域模块进行封装
CORS(app,cors_allowed_origins="*")



# 解决中文乱码
app.config['JSON_AS_ASCII'] = False


# 视图
# @app.route('/',methods=["GET","POST","PUT","DELETE"])

@app.route('/test')

async def test():
    return "hello word"

if __name__ == "__main__":

    app.run(debug=True)


# from flask import Flask
# from flask_cors import CORS
# app = Flask(__name__)
# CORS(app)


# @app.route('/test')
# def test():
    
#     return "3254626"

# if __name__ == "__main__":
    
#     app.run(debug=True)